﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GuitarShop.Models;

namespace GuitarShop.Controllers.Shop
{
    public class ShopController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index(int idShop)
        {
            ShopModels aShopModels = new ShopModels();
            ViewBag.Slider = aShopModels.GetSliderShop();
            ViewBag.Product = aShopModels.GetProductsShopIndex(idShop);
            return View("Index", "_ShopLayout");
        }

        public ActionResult Product()
        {
            ShopModels aShopModels = new ShopModels();
            return View("Product", "_ShopLayout");
        }

        public ActionResult ProductDetail(int pProductId)
        {
            ShopModels aShopModels = new ShopModels();
            ViewBag.Product = aShopModels.GetDetailProduct(pProductId);
            return View("ProductDetail", "_ShopLayout");
        }
    }
}
